package com.jeecg.springmvc.controller;

import com.jeecg.springmvc.annotation.Controller;
import com.jeecg.springmvc.annotation.RequestMapping;
import com.jeecg.springmvc.bean.User;

@Controller
@RequestMapping(params = "/user.do")
public class UserController {

	
	@RequestMapping(params="method=reg")
	public String reg(String username){
		System.out.println("UserController.reg()");
		System.out.println(username);
		return "login_succes.jsp";
	}
	
	@RequestMapping(params="method=reg2")
	public String reg2(User user){
		System.out.println("UserController.reg2()"+user.getUsername());
		return "index.jsp";
	}
	
}
